package pt.mleiria.experiments;

import static java.lang.Long.*;

public class UDF_Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//byte[] b = testArgs('a', 97);
		//System.out.println(b[0] + ":" + b[1]);
		
		testStrings("1");
	}

	private static byte[] testArgs(char p4, int p){
		byte[] ba = new byte[2];
		ba[0] = (byte)p4;
		ba[1] = (byte)p;
		return ba;
	}
	
	private static void testStrings(final String str){
		byte[] b = str.getBytes();
		for(int i = 0; i < b.length; i++){
			//System.out.println(b[i]);
			System.out.println(b[i] + ":" + toBinaryString(b[i]) + ":" + toHexString(b[i]));
		}
	}
}
